Web Part: Test Auto-Login Cookie

Modified on 2011/04/23 17:26 by Charles — Categorized as: Jetfire Web Part, User Administration, Web Parts

Table of Contents [Hide/Show]


   Test Auto-Login Cookie Web Part
      Access
      Procedures
         Check QueryString
         Create an Encrypted Cookie
         Decrypt Cookie
         Delete Cookie
      Edit Properties for the Web Part


Image

Test Auto-Login Cookie Web Part

This Web Part is used to test the auto-cookie feature that is part of the Create Jetfire User Web Part.

Access

This Web Part is accessed by the Jetfire Admin Panel.

Procedures

There are a number of tests that be performed from this Web Part.
  1. Check the Query string
  2. Encrypt the cookie
  3. Decrypt the cookie
  4. Delete the cookie

Check QueryString

The Query String syntax that appears in the browser address bar is: page url + '?confirmReg=' plus a unique user id. The query string is meaningful on a page with the Auto-Login Web Part and will automatically log users into Jetfire. To test the query string in the address bar, click the 'Check QueryString' link.

Create an Encrypted Cookie

To create an encrypted cookie,
  1. Enter a user name and password.
  2. Click 'Encrypt Cookie'.
  3. The user name and password saved in a Auto-Login cookie in the browser.

Decrypt Cookie

To test the cookie, it can be retrieved and decrypted.
  1. Click 'Decrypt Cookie'.
  2. If there is no cookie, a message 'There is no cookie' is displayed.
  3. If the cookie is found, but does not contain the user name or password, an error message is displayed.
  4. If the cookie is found and contain the user name and password, a message is displayed and the user name and password are validated against the database.
    • A message is displayed that indicates whether the user name and password is valid.

Delete Cookie

To delete the cookie, click the 'Delete Cookie' link.

Edit Properties for the Web Part

Edit Properties include: